package com.dd.ms.auth.entity;

import com.dd.ms.auth.pojo.DO.DeptDO;
import com.dd.ms.common.pojo.annotation.Explanation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/9 10:33
 * @Description 用户信息实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserEntity {
    @Explanation(value = "用户ID，自增主键")
    private Long userId;
    @Explanation(value = "账户名，用于登录")
    private String account;
    @Explanation(value = "用户密码（加密存储）")
    private String password;
    @Explanation(value = "用户真实姓名")
    private String userRealName;
    @Explanation(value = "联系方式（电话/邮箱）")
    private String contactInfo;
    @Explanation(value = "所属部门")
    private DeptDO department;
    @Explanation(value = "用户状态")
    private String status;
    @Explanation(value = "角色与权限")
    private RoleEntity rolePermissions;
}
